package com.luotf.model;

import java.io.Serializable;

public class Bloger implements Serializable {

	private static final long serialVersionUID = 1L;

	/** */
	private Integer id;

	/** 用户名 */
	private String username;

	/** 密码 */
	private String password;

	/** 博主邮箱 */
	private String email;

	private Integer hasPermission;

	private String photo;

	public Integer getHasPermission() {
		return hasPermission;
	}

	public void setHasPermission(Integer hasPermission) {
		this.hasPermission = hasPermission;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column t_bloger.id
	 *
	 * @return the value of t_bloger.id
	 * @mbggenerated
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column t_bloger.id
	 *
	 * @param id the value for t_bloger.id
	 * @mbggenerated
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column t_bloger.username
	 *
	 * @return the value of t_bloger.username
	 * @mbggenerated
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column t_bloger.username
	 *
	 * @param username the value for t_bloger.username
	 * @mbggenerated
	 */
	public void setUsername(String username) {
		this.username = username == null ? null : username.trim();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column t_bloger.password
	 *
	 * @return the value of t_bloger.password
	 * @mbggenerated
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column t_bloger.password
	 *
	 * @param password the value for t_bloger.password
	 * @mbggenerated
	 */
	public void setPassword(String password) {
		this.password = password == null ? null : password.trim();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column t_bloger.email
	 *
	 * @return the value of t_bloger.email
	 * @mbggenerated
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column t_bloger.email
	 *
	 * @param email the value for t_bloger.email
	 * @mbggenerated
	 */
	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	@Override
	public String toString() {
		return "Bloger [id=" + id + ", username=" + username + ", password=" + password + ", email=" + email
				+ ", hasPermission=" + hasPermission + ", photo=" + photo + "]";
	}

	public Bloger(Integer id, String username, String password, String email, Integer hasPermission, String photo) {
		this.id = id;
		this.username = username;
		this.password = password;
		this.email = email;
		this.hasPermission = hasPermission;
		this.photo = photo;
	}

	public Bloger() {
		
	}
	
	
	
	
}
